home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / misc / medical / mendelge.cpt / MendelGenetics / MENDELIAN GENETICS I / card_127380.txt < prev    next >
Text File  |  1989-06-13  |  3KB  |  133 lines

  1. -- card: 127380 from stack: in
  2. -- bmap block id: 127763
  3. -- flags: 0000
  4. -- background id: 2665
  5. -- name: 
  6.  
  7.  
  8. -- part 1 (field)
  9. -- low flags: 00
  10. -- high flags: 0002
  11. -- rect: left=263 top=60 right=80 bottom=342
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 0
  15. -- font id: 128
  16. -- text size: 10
  17. -- style flags: 0
  18. -- line height: 13
  19. -- part name: one
  20.  
  21.  
  22. -- part 2 (field)
  23. -- low flags: 00
  24. -- high flags: 0002
  25. -- rect: left=263 top=88 right=108 bottom=342
  26. -- title width / last selected line: 0
  27. -- icon id / first selected line: 0 / 0
  28. -- text alignment: 0
  29. -- font id: 128
  30. -- text size: 10
  31. -- style flags: 0
  32. -- line height: 13
  33. -- part name: two
  34.  
  35.  
  36. -- part 3 (field)
  37. -- low flags: 00
  38. -- high flags: 0002
  39. -- rect: left=262 top=197 right=217 bottom=319
  40. -- title width / last selected line: 0
  41. -- icon id / first selected line: 0 / 0
  42. -- text alignment: 0
  43. -- font id: 128
  44. -- text size: 10
  45. -- style flags: 0
  46. -- line height: 13
  47. -- part name: three
  48.  
  49.  
  50. -- part 4 (field)
  51. -- low flags: 00
  52. -- high flags: 0002
  53. -- rect: left=348 top=197 right=218 bottom=404
  54. -- title width / last selected line: 0
  55. -- icon id / first selected line: 0 / 0
  56. -- text alignment: 0
  57. -- font id: 128
  58. -- text size: 10
  59. -- style flags: 0
  60. -- line height: 13
  61. -- part name: four
  62.  
  63.  
  64. -- part 5 (field)
  65. -- low flags: 00
  66. -- high flags: 0002
  67. -- rect: left=433 top=197 right=218 bottom=489
  68. -- title width / last selected line: 0
  69. -- icon id / first selected line: 0 / 0
  70. -- text alignment: 0
  71. -- font id: 128
  72. -- text size: 10
  73. -- style flags: 0
  74. -- line height: 13
  75. -- part name: five
  76.  
  77.  
  78. -- part 6 (button)
  79. -- low flags: 00
  80. -- high flags: 8003
  81. -- rect: left=335 top=300 right=322 bottom=435
  82. -- title width / last selected line: 0
  83. -- icon id / first selected line: 0 / 0
  84. -- text alignment: 1
  85. -- font id: 0
  86. -- text size: 12
  87. -- style flags: 0
  88. -- line height: 16
  89. -- part name: RESET
  90. ----- HyperTalk script -----
  91. on mouseUp
  92.   delete line 1 of card field one
  93.   delete line 1 of card field two
  94.   delete line 1 of card field three
  95.   delete line 1 of card field four
  96.   delete line 1 of card field five
  97.   get the location of card field one
  98.   click at it
  99. end mouseUp
  100.  
  101.  
  102.  
  103. -- part 7 (button)
  104. -- low flags: 00
  105. -- high flags: 8003
  106. -- rect: left=334 top=252 right=274 bottom=434
  107. -- title width / last selected line: 0
  108. -- icon id / first selected line: 0 / 0
  109. -- text alignment: 1
  110. -- font id: 0
  111. -- text size: 12
  112. -- style flags: 0
  113. -- line height: 16
  114. -- part name: CALCULATE
  115. ----- HyperTalk script -----
  116. on mouseUp
  117.   global bag
  118.   set numberFormat to "00.0000"
  119.   put the value of (card field one/card field two) into card field four
  120.   put the value of 1.96 * sqrt(((card field four) * (1-card field four)) / card field two) into bag
  121.   put the value of card field four - bag into card field three
  122.   put the value of card field four + bag into card field five
  123. end mouseUp
  124.  
  125.  
  126.  
  127. -- part contents for background part 8
  128. ----- text -----
  129. 41
  130.  
  131. -- part contents for background part 2
  132. ----- text -----
  133. Simply enter the number of individuals in your sample along with the number displaying a desired phenotype. Click on the calculate button and you will get the confidence limits for your value which is the numerical span between which the true mean of your sample falls with a better than 95% accuracy.